package com.xdq.spring.model;

import java.io.Serializable;

public class Light implements Serializable {

    /**
     *   类型 LED 卤素
     */
    private String type;

    private String brand;

    private String serialNo;
    //功率
    private String wallt;

    private String createDate;

    public Light() {
        System.out.println("Light被实例化了");
    }

    public  void turnOn(){
        System.out.println("车灯"+serialNo+"打开了");
    }

    public void trunOff(){
        System.out.println("车灯"+serialNo+"关闭了");
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getWallt() {
        return wallt;
    }

    public void setWallt(String wallt) {
        this.wallt = wallt;
    }

    public String getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }
}
